home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
273_01
/
putca.cc
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-09-26
|
360 b
|
15 lines
#include <dos.h>
put_ca(char ch, int attr, int count)
/* This will put the specified charater and attribute on the screen at
the current cursor location.
*/
{
union REGS inregs;
inregs.h.bh=0;
inregs.h.bl=attr;
inregs.h.al=ch;
inregs.x.cx=count;
inregs.h.ah=9;
int86(0x10,&inregs,&inregs);
}